<?php

namespace App\Params\Backend;

use App\Params\Param;
/**
 * 角色绑定资源参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
class RoleUpdateResourceParam extends Param
{
    public $role_id;
    public $resource_id;

    public function rules()
    {
        return [
            'resource_id' => 'required|array',
            'role_id' => 'nullable|integer'
        ];
    }

    /**
     * @return mixed
     */
    public function getRoleId()
    {
        return $this->role_id;
    }

    /**
     * @param mixed $role_id
     */
    public function setRoleId($role_id): void
    {
        $this->role_id = $role_id;
    }

    /**
     * @return mixed
     */
    public function getResourceId()
    {
        return $this->resource_id;
    }

    /**
     * @param mixed $resource_id
     */
    public function setResourceId($resource_id): void
    {
        $this->resource_id = $resource_id;
    }
}